import 'package:time_manager/utils/RecordModel.dart';

class RecoreModelItem {
  late String id;
  late String time;
  late List<RecoreModel> data;

  RecoreModelItem({required this.id, this.time = 'dart', required this.data});

  RecoreModelItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    time = json['time'];
    data = json['data'] as List<RecoreModel>;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> temp = Map<String, dynamic>();

    temp['id'] = id;
    temp['time'] = time;
    temp['data'] = data;
    return temp;
  }
}
